<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">    
    <title>My JSP 'downloadFile.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="description" content="This is my page">
	<link rel="shortcut icon" href="<%=basePath%>favicon.ico" type="image/x-icon" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>style/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>style/themes/icon.css">
	<script type="text/javascript" src="<%=basePath%>javascript/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/pub.js"></script>
	<script type="text/javascript" src="<%=basePath%>pages/basic/js/Import.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="<%=basePath%>javascript/easyui_pub.js"></script>
	<script>window.onerror=hide_error_message;function hide_error_message(){return true;}</script>	
	<style type="text/css">
	body
	{
		font-size:12px;
		
	}	
	.export
	{
		 background:url('images/export.gif') no-repeat;
		 height:26px;
		 width:90px;
		 color:#666;
		 line-height:26px;
		 text-indent:22px;	
		 left:120px;	 
		 float:none;
	}
	.export a:link, .export a:visited	
	{
	     font-size:13px;
		 color:#006699;
		 font-weight:bold;
		 text-decoration:none;
	}	
	.export a:hover, .export a:active	
	{
	     font-size:13px;
		 color:#006699;;
		 font-weight:bold;
		 text-decoration:none;
	
	}	
	</style>
  </head>
  
  <body>
   <div style="height: 100px; width:100%; color: #006699; font-size:12px; padding:15px 15px 15px 15px; border:dotted 1px #996600;"><strong>操作说明：</strong>
   <br>1、导入后将覆盖原有数据，过程不可逆，建议先导出本地数据备份；
   <br>2、请按照导出文件中的格式录入数据（建议先导出数据作为模板进行修改）以免造成格式不对无法导入或其它异常情况；
   <br>3、导入文件过程中，请勿关闭浏览器，以免导入失败；
   <br>4. 支持文件格式为Excel 2003 。 
   </div>   
   <div style="height: 10px; width: 100%"></div>
   <div style="height: 10px; width: 100%"><strong><font style="font-size:13px; color: #006699; font-weight:bold">请选择操作项:</font>&nbsp;&nbsp;&nbsp;</strong>
   <select style="font-size:12px; color:#000000;" id="selType" onChange="selChange()">
   <option value="ARP_BSC_DEPT" selected style="font-size:12px;">使用单位</option>
   <option value="ARP_BSC_CHARGE" style="font-size:12px;">收费项目</option>
   </select>
   </div>
   <div style="height: 5px; width: 100%"></div> 
   <div style="width:180px;">
   <!-- <strong><font style="font-size:13px; color: #006699; font-weight:bold;vertical-align:middle;">导出Excel:</font>&nbsp;&nbsp;&nbsp;</strong>  -->   
   <div class="export"><a href="action/basic/excels/download.file?Token=${param.Token}" target="_self" id="ExportS">&nbsp;导出Excel</a></div>
   </div>   
   <div style="height: 5px; width: 100%"></div>   	
   <!-- 导出 -->
   <div>
   		<strong>
   			<font style="font-size:13px; color: #006699; font-weight:bold">请选择上传文件:</font>&nbsp;&nbsp;&nbsp;
   		</strong>
   </div>
   <!-- 导入 -->
   <div id="upExcel">
   <form action="action/basic/excels/uploadFile.file?Token=${param.Token}" method="post" enctype="multipart/form-data" id="uploadForm" name="uploadForm">
   		<span id="fileSpan"><input type="file" name="__file" id="uploadFile" style="height:25px; width:400px; float:left;" /></span>
   		<input value="导入" type="button" style="height:25px; width:76px; left:420px;" id="btnUpload" onClick="formSubmit()"/><br> 
   </form>
   </div>
   <div style="height: 5px; width: 100%"></div>
   <!-- 导入 --> 
  </body>
</html>
